<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<div class="pull-left"><h4 class="zztitle f18">评价</h4></div>
<input type="hidden" id="page_no" value="${paramMap.pageNo}"/>
<input type="hidden" id="page_size" value="${paramMap.pageSize}"/>
<input type="hidden" id="page_count" value="${paramMap.pageCount}"/>
<input type="hidden" id="data_count" value="${paramMap.dataCount}"/>

<input type="hidden" id="discuss_score" value="${paramMap.discussScore}"/>

<c:if test="${paramMap.discussType==1 || paramMap.discussType==3 || paramMap.discussType==4}">
<div class="zcplist clearfix">
	<ul>
		<c:choose>
			<c:when test="${paramMap.discussScore==1}">
				<li class="curr">
			</c:when>
			<c:otherwise>
				<li>
			</c:otherwise>
		</c:choose>
			<a href="javaScript:queryScoreList(1)"> <i class="sym sym-bad"></i>差<p class="num">${paramMap.badCount}</p></a>
		</li>
		<c:choose>
			<c:when test="${paramMap.discussScore==2}">
				<li class="curr">
			</c:when>
			<c:otherwise>
				<li>
			</c:otherwise>
		</c:choose>
			<a href="javaScript:queryScoreList(2)"> <i class="sym sym-evaluate"></i>一般<p class="num">${paramMap.mediumCount}</p></a>
		</li>
		<c:choose>
			<c:when test="${paramMap.discussScore==3}">
				<li class="curr">
			</c:when>
			<c:otherwise>
				<li>
			</c:otherwise>
		</c:choose>
			<a href="javaScript:queryScoreList(3)"><i class="sym sym-appreciate"></i>好<p class="num">${paramMap.goodCount}</p></a>
		</li>
	</ul>
</div>
</c:if>

<c:choose>
<c:when test="${!empty discussList && fn:length(discussList) ne 0}">
	
	<p:pagination pageNo="${paramMap.pageNo}" pageCount="${paramMap.pageCount}" queryFunction="queryDiscussList" style="text-right"></p:pagination>
	
	<div class="social-footer">
		<c:forEach var="discussInfo" items="${discussList}" varStatus="index">
			<div class="social-comment">
				<a class="pull-left" href="javaScript:void(0)"><img src="<%=path %>/uncheck/pictures/servlet?id=${discussInfo.headImage}" alt="image"></a>
				<div class="media-body">
					<a href="javaScript:void(0)">${discussInfo.userName}</a>
					<c:if test="${discussInfo.discussScore==1}">差评</c:if>
					<c:if test="${discussInfo.discussScore==2}">中评</c:if>
					<c:if test="${discussInfo.discussScore==3}">好评</c:if>
					<br>
					${discussInfo.discussInfo}
					<br>
					<small class="text-muted"><fmt:formatDate value="${discussInfo.discussTime}" pattern="yyyy-MM-dd HH:mm:ss"/></small>
				</div>
			</div>
		</c:forEach>
	</div>
</c:when>
<c:otherwise>
	<div class="social-footer">
		<div class="social-comment">
			暂无评论
		</div>
	</div>
</c:otherwise>
</c:choose>